import { nilAxiosInstance, defAxiosInstance } from ".."

// 公开组


// 鉴权组
export const balance = () => {
  return defAxiosInstance({
      url: "/cashcenter/def/balance",
      method: "get"
  })
}

export const account = () => {
  return defAxiosInstance({
      url: "/cashcenter/def/account",
      method: "get"
  })
}

export const cashin = (count: number) => {
  return defAxiosInstance({
      url: "/cashcenter/def/cashin",
      method: "post",
      data: {
        count
      }
  })
}

export const cashout = (count: number) => {
  return defAxiosInstance({
      url: "/cashcenter/def/cashout",
      method: "post",
      data: {
        count
      }
  })
}

export const getPaypage = (uuid: number) => {
  return nilAxiosInstance({
      url: "/cashcenter/nil/alipay/paypage?key="+uuid,
      method: "get"
  })
}
